package com.controller;

import com.service.LanguageService;
import com.utils.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author rkc
 * @date 2022/8/26 10:07
 */
@RestController
@RequestMapping("/api/v1/lang")
public class LanguageController {

    @Autowired
    private LanguageService languageService;

    /**
     * 查询所有语言相关信息
     * @return
     */
    @GetMapping("select_all")
    public JsonData selectAll() {
        return languageService.selectAll();
    }
}
